
# 基础镜像信息
FROM daocloud.io/shengwubin/ubuntu16-04

# 维护者信息
MAINTAINER Ken ken.han.coder@aliyun.com

RUN apt-get update
RUN DEBIAN_FRONTEND=noninteractive apt-get install -y nginx

COPY nginx.conf /etc/nginx/nginx.conf
COPY ./nginx_flask_demo.conf /etc/nginx/conf.d/flask_demo.conf

EXPOSE 80 443

CMD ["nginx", "-g", "daemon off;"]

# Clean up APT when done.
RUN apt-get clean && rm -rf /var/lib/apt/lists/* /tmp/* /var/tmp/*